package com.ruoyi.part.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.part.domain.DmsPartStorageInfo;
import com.ruoyi.part.domain.DmsPartsPurchaseOrder;

import java.util.List;

/**
 * 零件采购Service接口
 * 
 * @author liuchuanfa
 * @date 2024-03-17
 */
public interface IDmsPartsPurchaseOrderService extends IService<DmsPartsPurchaseOrder>
{
    /**
     * 查询零件采购
     * 
     * @param id 零件采购主键
     * @return 零件采购
     */
    public DmsPartsPurchaseOrder selectDmsPartsPurchaseOrderById(Long id);


    /**
     * 根据id查询零件信息
     *
     * @param orderDetailpartNos
     * @return {@link List }<{@link DmsPartStorageInfo }>
     * @author liuchuanfa
     * @since 2024/03/19
     */
    public List<DmsPartStorageInfo> getPartsInfoByIds(String[] orderDetailpartNos);

    /**
     * 查询零件采购列表
     * 
     * @param dmsPartsPurchaseOrder 零件采购
     * @return 零件采购集合
     */
    public List<DmsPartsPurchaseOrder> selectDmsPartsPurchaseOrderList(DmsPartsPurchaseOrder dmsPartsPurchaseOrder);

    /**
     * 新增零件采购
     * 
     * @param dmsPartsPurchaseOrder 零件采购
     * @return 结果
     */
    public boolean insertDmsPartsPurchaseOrder(DmsPartsPurchaseOrder dmsPartsPurchaseOrder);

    /**
     * 修改零件采购
     * 
     * @param dmsPartsPurchaseOrder 零件采购
     * @return 结果
     */
    public boolean updateDmsPartsPurchaseOrder(DmsPartsPurchaseOrder dmsPartsPurchaseOrder);

    /**
     * 批量删除零件采购
     * 
     * @param ids 需要删除的零件采购主键集合
     * @return 结果
     */
    public int deleteDmsPartsPurchaseOrderByIds(Long[] ids);

    /**
     * 删除零件采购信息
     * 
     * @param id 零件采购主键
     * @return 结果
     */
    public int deleteDmsPartsPurchaseOrderById(Long id);

    /**
     * 订单配车
     * @param id
     * @author liuchuanfa
     * @since 2024/03/19
     */
    public Boolean purchaseVehicleById(Long id);
}
